home *** CD-ROM | disk | FTP | other *** search
- Path: qualcomm.com!not-for-mail
- From: drew@qualcomm.com (Drew Eckhardt)
- Newsgroups: comp.lang.c++
- Subject: Re: File I/O using fwrite()
- Date: 17 Apr 1996 20:47:15 -0600
- Organization: QUALCOMM, Incorporated; San Diego, CA, USA
- Message-ID: <4l4afj$jsh@qualcomm.com>
- References: <31758D70.1D38@vixa.voyager.net>
- NNTP-Posting-Host: littlebear.qualcomm.com
-
- In article <31758D70.1D38@vixa.voyager.net>,
- David Wade <dwade@vixa.voyager.net> wrote:
- >For some reason, no matter what I do the information is always written
- >at the end of the file instead of where I want it to replace...
-
- > f=_fsopen(".\\data\\weapons.dat", "ab+", SH_DENYNONE);
-
- _fsopen is not an ANSI standard C++ function, and is therefore outside the
- scope of this newsgroup. Assuming the type parameter has the same semantics
- as the standard fopen() function, you're telling it to always append to the
- file. Using "w+b" would do what you want.
-
- --
- <a href="http://www.poohsticks.org/drew/">Home Page</a>
- Four boxes : soap, ballot, jury, ammo. | Work: drew@Qualcomm.COM
- Use in that order. | Play: drew@PoohSticks.ORG
-